/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.alb.model.v20200616;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alb.transform.v20200616.ListHealthCheckTemplatesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
 * @author auto create
 * @version 
 */
public class ListHealthCheckTemplatesResponse extends AcsResponse {

	private Integer maxResults;

	private String nextToken;

	private String requestId;

	private Integer totalCount;

	private List<HealthCheckTemplate> healthCheckTemplates;

	public Integer getMaxResults() {
		return this.maxResults;
	}

	public void setMaxResults(Integer maxResults) {
		this.maxResults = maxResults;
	}

	public String getNextToken() {
		return this.nextToken;
	}

	public void setNextToken(String nextToken) {
		this.nextToken = nextToken;
	}

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Integer getTotalCount() {
		return this.totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public List<HealthCheckTemplate> getHealthCheckTemplates() {
		return this.healthCheckTemplates;
	}

	public void setHealthCheckTemplates(List<HealthCheckTemplate> healthCheckTemplates) {
		this.healthCheckTemplates = healthCheckTemplates;
	}

	public static class HealthCheckTemplate {

		private Integer healthCheckConnectPort;

		private String healthCheckHost;

		private String healthCheckHttpVersion;

		private Integer healthCheckInterval;

		private String healthCheckMethod;

		private String healthCheckPath;

		private String healthCheckProtocol;

		private String healthCheckTemplateId;

		private String healthCheckTemplateName;

		private Integer healthCheckTimeout;

		private Integer healthyThreshold;

		private Integer unhealthyThreshold;

		private Boolean healthCheckTcpFastCloseEnabled;

		private Boolean serviceManagedEnabled;

		private String serviceManagedMode;

		private List<Tag> tags;

		private List<String> healthCheckHttpCodes;

		private List<String> healthCheckCodes;

		public Integer getHealthCheckConnectPort() {
			return this.healthCheckConnectPort;
		}

		public void setHealthCheckConnectPort(Integer healthCheckConnectPort) {
			this.healthCheckConnectPort = healthCheckConnectPort;
		}

		public String getHealthCheckHost() {
			return this.healthCheckHost;
		}

		public void setHealthCheckHost(String healthCheckHost) {
			this.healthCheckHost = healthCheckHost;
		}

		public String getHealthCheckHttpVersion() {
			return this.healthCheckHttpVersion;
		}

		public void setHealthCheckHttpVersion(String healthCheckHttpVersion) {
			this.healthCheckHttpVersion = healthCheckHttpVersion;
		}

		public Integer getHealthCheckInterval() {
			return this.healthCheckInterval;
		}

		public void setHealthCheckInterval(Integer healthCheckInterval) {
			this.healthCheckInterval = healthCheckInterval;
		}

		public String getHealthCheckMethod() {
			return this.healthCheckMethod;
		}

		public void setHealthCheckMethod(String healthCheckMethod) {
			this.healthCheckMethod = healthCheckMethod;
		}

		public String getHealthCheckPath() {
			return this.healthCheckPath;
		}

		public void setHealthCheckPath(String healthCheckPath) {
			this.healthCheckPath = healthCheckPath;
		}

		public String getHealthCheckProtocol() {
			return this.healthCheckProtocol;
		}

		public void setHealthCheckProtocol(String healthCheckProtocol) {
			this.healthCheckProtocol = healthCheckProtocol;
		}

		public String getHealthCheckTemplateId() {
			return this.healthCheckTemplateId;
		}

		public void setHealthCheckTemplateId(String healthCheckTemplateId) {
			this.healthCheckTemplateId = healthCheckTemplateId;
		}

		public String getHealthCheckTemplateName() {
			return this.healthCheckTemplateName;
		}

		public void setHealthCheckTemplateName(String healthCheckTemplateName) {
			this.healthCheckTemplateName = healthCheckTemplateName;
		}

		public Integer getHealthCheckTimeout() {
			return this.healthCheckTimeout;
		}

		public void setHealthCheckTimeout(Integer healthCheckTimeout) {
			this.healthCheckTimeout = healthCheckTimeout;
		}

		public Integer getHealthyThreshold() {
			return this.healthyThreshold;
		}

		public void setHealthyThreshold(Integer healthyThreshold) {
			this.healthyThreshold = healthyThreshold;
		}

		public Integer getUnhealthyThreshold() {
			return this.unhealthyThreshold;
		}

		public void setUnhealthyThreshold(Integer unhealthyThreshold) {
			this.unhealthyThreshold = unhealthyThreshold;
		}

		public Boolean getHealthCheckTcpFastCloseEnabled() {
			return this.healthCheckTcpFastCloseEnabled;
		}

		public void setHealthCheckTcpFastCloseEnabled(Boolean healthCheckTcpFastCloseEnabled) {
			this.healthCheckTcpFastCloseEnabled = healthCheckTcpFastCloseEnabled;
		}

		public Boolean getServiceManagedEnabled() {
			return this.serviceManagedEnabled;
		}

		public void setServiceManagedEnabled(Boolean serviceManagedEnabled) {
			this.serviceManagedEnabled = serviceManagedEnabled;
		}

		public String getServiceManagedMode() {
			return this.serviceManagedMode;
		}

		public void setServiceManagedMode(String serviceManagedMode) {
			this.serviceManagedMode = serviceManagedMode;
		}

		public List<Tag> getTags() {
			return this.tags;
		}

		public void setTags(List<Tag> tags) {
			this.tags = tags;
		}

		public List<String> getHealthCheckHttpCodes() {
			return this.healthCheckHttpCodes;
		}

		public void setHealthCheckHttpCodes(List<String> healthCheckHttpCodes) {
			this.healthCheckHttpCodes = healthCheckHttpCodes;
		}

		public List<String> getHealthCheckCodes() {
			return this.healthCheckCodes;
		}

		public void setHealthCheckCodes(List<String> healthCheckCodes) {
			this.healthCheckCodes = healthCheckCodes;
		}

		public static class Tag {

			private String key;

			private String value;

			public String getKey() {
				return this.key;
			}

			public void setKey(String key) {
				this.key = key;
			}

			public String getValue() {
				return this.value;
			}

			public void setValue(String value) {
				this.value = value;
			}
		}
	}

	@Override
	public ListHealthCheckTemplatesResponse getInstance(UnmarshallerContext context) {
		return	ListHealthCheckTemplatesResponseUnmarshaller.unmarshall(this, context);
	}

	@Override
	public boolean checkShowJsonItemName() {
		return false;
	}
}
